/**
 * @see [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/clipboard.html#wxsetclipboarddataobject)
 * @param data [string] 需要设置的内容
 */
export default function set_clipboard_data(data: string) {
	return new Promise<boolean>((resolve, reject) => {
		wx.setClipboardData({
			data,
			success() {
				resolve(true);
			},
			fail() {
				reject(false);
			}
		});
	});
}
